package cn.web;

import cn.web.entity.Student;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


import java.util.Arrays;
import java.util.List;
@RestController
public class TestController {
    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public  String test1u2(){
        System.out.println("test方法已经执行");
        return "index";
    }
   /* @RequestMapping("/test2")
    public List<Student> test2(){
        System.out.println("test方法已经执行");
        Student s1 = new Student("s001","steven1");
        Student s2 = new Student("s002","steven2");
        Student s3 = new Student("s003","steven3");
        List<Student> students = Arrays.asList(s1, s2, s3);
        return students;
    }*/
}
